.class Lcom/waiqin365/lightapp/im/activity/cy;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:I

.field final synthetic b:Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;I)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/activity/cy;->b:Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;

    iput p2, p0, Lcom/waiqin365/lightapp/im/activity/cy;->a:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    const-wide/16 v0, 0xa

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/cy;->b:Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;->a(Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/cy;->b:Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;->a(Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/cy;->b:Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;->b(Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/cy;->b:Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;->b(Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    instance-of v1, v0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;

    if-eqz v1, :cond_0

    check-cast v0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->setIconVisible(Z)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/cy;->b:Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;->c(Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;)Landroid/widget/HorizontalScrollView;

    move-result-object v0

    iget v1, p0, Lcom/waiqin365/lightapp/im/activity/cy;->a:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/widget/HorizontalScrollView;->scrollTo(II)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method
